#include <Shinygami/game.hpp>
#include "mainscript.hpp"
#include <iostream>

int	main()
{
    DataTree* file = DataTree::Factory::Yaml("monptittest.yml");

    if (file)
    {
	Shiny::Game         game(file);
	Shiny::Widgets::Ui* mainMenu = game.GetMainMenu();

	delete file;
	if (mainMenu)
	{
	    MyMainScript* mainScript = new MyMainScript(game, *mainMenu);

	    game.SetMainScript(mainScript);
	}
	return (game.Execute());
    }
    return (-1);
}
